<?php
declare (strict_types = 1);

namespace app\api\model\v1;

use think\Model;

/**
 * @mixin \think\Model
 */
class AuditExamFile extends AppModel
{
    //

    public function examDetail(){
        return $this->belongsTo(ExamDetail::class,'exam_detail_id')->field('id,exam_detail_title,desc,exam_id,exam_stair_type_id,exam_second_level_id,deduct_marks_standard,once_deduct_marks,most_deduct_marks');
    }


    public function auditExam(){
        return $this->belongsTo(AuditExam::class,'audit_exam_id')->field('id,unit_id,exam_id,date_of,original,deduct_marks,final_score,attribute');
    }

    public function user(){
        return $this->belongsTo(Users::class,'user_id')->field('id,nickname,username');
    }
}
